package com.zyl.pagergallerysave_kt.volley

import android.content.Context
import com.android.volley.RequestQueue
import com.android.volley.toolbox.Volley

class VolleyUtil(private val context: Context) {
    companion object {
        private val volleyUtil: VolleyUtil? = null
        fun getVolleyUtil(context: Context): VolleyUtil =
                volleyUtil
                        ?: synchronized(this) { VolleyUtil(context) }
    }

    val requestQueue: RequestQueue by lazy {
        Volley.newRequestQueue(context)
    }
}

